package br.ufrgs.meetapp.models;

import java.io.Serializable;
import java.util.Date;


/*
<BUDDIES>
	<RESULT>
		<BUDDY_ID>1612</BUDDY_ID> - ok
		<BUDDY_NAME>PILOT_NO</BUDDY_NAME> - ok
		<BUDDY_HANDY></BUDDY_HANDY> - ????
		<BUDDY_EMAIL></BUDDY_EMAIL> - ok
		<X_POS>18.3703</X_POS> - ok
		<Y_POS>39.8203</Y_POS> - ok
		<RADIUS>0</RADIUS> - ok
		<LBS_STATUS>false</LBS_STATUS> - ok
		<LAST_LBS_DATE>2007-12-04T00:00:00-02:00</LAST_LBS_DATE> - ok
		<REG_DATE>2007-12-04T00:00:00-02:00</REG_DATE> - ok
		<PROVIDER_TYP>2</PROVIDER_TYP> - ok
		<DIRECTION>0</DIRECTION> - ok
		<SPEED>0</SPEED> - ok
		<ALERT>0</ALERT> - ok
		<ODOMETER>0</ODOMETER> - ok
		<TEMPERATUR>0</TEMPERATUR> - ok
		<FUELLEVEL>0</FUELLEVEL> - ok
		<IGNITION>0</IGNITION> - ok
		<GPS_SIGNAL>0</GPS_SIGNAL> - ok
		<NETWORK>0</NETWORK> - ok
		<SENSOR1>0</SENSOR1> - ok
		<SENSOR2>0</SENSOR2> - ok
		<CURRENTNETWORK>0</CURRENTNETWORK> - ok
		<ALT>0</ALT> - ok
		<ANZSAT>0</ANZSAT> - ok
		<MAINPOWERDISC>0</MAINPOWERDISC> - ok
		<MAINPOWLOWLEVEL>0</MAINPOWLOWLEVEL> - ok
		<BACKUPDISC>0</BACKUPDISC> - ok
		<BACKUPLOWLEVEL>0</BACKUPLOWLEVEL> - ok
		<GPSDISC>0</GPSDISC> - ok
		<VERBRAUCH>0</VERBRAUCH> - ok
		<IS_DELETED>false</IS_DELETED> - ok
		<BUDDY_REG_ID>0</BUDDY_REG_ID> - ok
		<MAIN_INSPECTION_EXPIRE_DATE>1905-03-14T00:00:00-03:00</MAIN_INSPECTION_EXPIRE_DATE> - ok
		<EXHAUST_INSPECTION_EXPIRE_DATE>1905-06-20T00:00:00-03:00</EXHAUST_INSPECTION_EXPIRE_DATE> - ok
	</RESULT>
</BUDDIE>
*/


public class Buddy implements Serializable{
	
	//TODO: change var names according to new definitions
	
	/**
	 * Serial Version
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	
	/** this buddy ID */
	private int buddyId;
	/** name registered for this buddy - maybe the driver, the employee */
	private String buddyName = "";
	/** telephone registered for this buddy */
	private String buddyHandy = "";
	/** email registered for this buddy */
	private String buddyEmail = "";
	/** this value will probably be received as a float so we should multiply by 1E6 to convert.*/
	private int latitude;
	/** this value will probably be received as a float so we should multiply by 1E6 to convert.*/
	private int longitude;
	/** accuracy of current position */
	private int radius;
	/** Date of Last Position */
	private Date positionDate;
	/** Date of last transmission */
	private Date transmissionDate;
	/** Kind of device */
	private String providerName;
	/** Battery Level*/
	private int batteryLevel;
	/** Device Serial*/
	private String deviceSerial;
	
	public int getBuddyId() {
		return buddyId;
	}


	public void setBuddyId(int buddyId) {
		this.buddyId = buddyId;
	}


	public String getBuddyName() {
		return buddyName;
	}


	public void setBuddyName(String buddyName) {
		this.buddyName = buddyName;
	}


	public String getBuddyHandy() {
		return buddyHandy;
	}


	public void setBuddyHandy(String buddyHandy) {
		this.buddyHandy = buddyHandy;
	}


	public String getBuddyEmail() {
		return buddyEmail;
	}


	public void setBuddyEmail(String buddyEmail) {
		this.buddyEmail = buddyEmail;
	}


	public int getLatitude() {
		return latitude;
	}


	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}


	public int getLongitude() {
		return longitude;
	}


	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}


	public int getRadius() {
		return radius;
	}


	public void setRadius(int radius) {
		this.radius = radius;
	}


	public Date getPositionDate() {
		return positionDate;
	}


	public void setPositionDate(Date positionDate) {
		this.positionDate = positionDate;
	}


	public Date getTransmissionDate() {
		return transmissionDate;
	}


	public void setTransmissionDate(Date transmissionDate) {
		this.transmissionDate = transmissionDate;
	}


	public String getProviderName() {
		return providerName;
	}


	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}


	public int getBatteryLevel() {
		return batteryLevel;
	}


	public void setBatteryLevel(int bateryLevel) {
		this.batteryLevel = bateryLevel;
	}


	public String getDeviceSerial() {
		return deviceSerial;
	}


	public void setDeviceSerial(String deviceSerial) {
		this.deviceSerial = deviceSerial;
	}

}
